/* SVN Info:
 * $HeadURL: http://jkad.googlecode.com/svn/tags/JKad_TCC_Prototype/src/jkad/structures/kademlia/RPCInfo.java $
 * $LastChangedRevision: 35 $
 * $LastChangedBy: polaco $                             
 * $LastChangedDate: 2006-09-19 01:47:17 +0000 (Tue, 19 Sep 2006) $  
 */
package jkad.structures.kademlia;

import jkad.protocol.rpc.RPC;

public class RPCInfo<T extends RPC>
{
    private T rpc;

    private String ip;

    private int port;

    public RPCInfo(T rpc, String ip, int port)
    {
        this.rpc = rpc;
        this.ip = ip;
        this.port = port;
    }

    public String getIP()
    {
        return ip;
    }

    public int getPort()
    {
        return port;
    }

    public T getRPC()
    {
        return rpc;
    }
    
    public String getIPAndPort()
    {
        return ip + ":" + port;
    }
}